how to get properties from json in c#

97

how to get properties from json in c# -

        var query = parsedStr.Descendants().OfType<JProperty>().Where(p => p.Value.Type != JTokenType.Array && p.Value.Type != JTokenType.Object);
        foreach (var property in query)
            Console.WriteLine(property);

Comments

Submit
0 Comments